import Vue from 'vue'
import VueRouter from 'vue-router'
//引入首页
import Home from '../views/Home.vue'
//引入登录页
import login from '../views/login.vue'

Vue.use(VueRouter)

const routes = [
  {
    //首页
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    //登录页
    path: '/login',
    name: 'loginPage',
    component: login
  }

]

const router = new VueRouter({
  routes
})

export default router
